
<script>
	export default {
		globalData: {  
		    siteUrl: "http://192.168.0.3:321"  
		}, 
		onLaunch: function() {
			console.log('App Launch')
			uni.getSystemInfo({
				success: function (res) {
					var deviceInfo = {}
					var r = 750 / res.screenWidth;
					deviceInfo.statusBarHeight = res.statusBarHeight;
					deviceInfo.statusBarHeightPx = res.statusBarHeight
					deviceInfo.statusBarHeightRpx = r * res.statusBarHeight;
					var o = res.safeArea ? res.safeArea.bottom : res.screenHeight
					var i = res.screenHeight - o;
					deviceInfo.bottomSafeAreaHeight = i > 0 ? 22 : 0
					deviceInfo.platform = res.platform
					console.log("deviceInfo", deviceInfo);
					uni.setStorageSync('deviceInfo', deviceInfo);
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
</style>
